/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package persistence;

import entities.Applicant;
import java.io.Serializable;
import java.util.List;
import org.hibernate.HibernateException;

/**
 *
 * @author Ant Ongun Kefeli
 */
public interface GenericDAO<T, PK extends Serializable> {

    void create(T t) throws HibernateException;
    void update(T t) throws HibernateException;
    void delete(T t) throws HibernateException;
    T findById(PK id)  throws HibernateException;
    List<T> findAll() throws HibernateException;
    void createOrUpdate(T t);
}
